<template>
  <div class="contentTitle">
     <span></span>
      <div class="title">{{title}}</div>
      <span></span>
  </div>
</template>

<script>
export default {
  name: 'ContentTitle',
  data () {
    return {
      
    };
  },
  props:{
    title:{
      type:String,
      default:'标题'
    }
  },
  components: {},
  mounted () {},
  methods: {}
}
</script>

<style lang="less" scoped>
.contentTitle {
    width: 15rem;
    height: 4rem;
    font-size: 2rem;
    text-align: center;
    line-height: 4rem;
    border: 0.2rem black solid;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    box-sizing: border-box;
    justify-content: space-between;
    position: relative;
    span {
      display: inline-block;
      width: 0.8rem;
      height: 0.8rem;
      border-radius: 50%;
      background-color: black;
      position: relative;
    }
    & span:nth-of-type(1) {
      &::before {
        right: 0;
        content: "";
        position: absolute;
        width: 5.8rem;
        height: 0.2rem;
        background-color: black;
        top: 50%;
        transform: translateY(-50%);
      }
    }
    & span:nth-of-type(2) {
      &::after {
        content: "";
        position: absolute;
        width: 5.8rem;
        height: 0.2rem;
        background-color: black;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
      }
    }
  }
</style>